/* eslint-disable default-case */
import {fromJS} from "immutable"
import {GET_INFO_SILD} from "./actionCreator"
const defaultStore=fromJS({
    listData:[]
    
})
export default (state=defaultStore,action)=>{
    switch (action.type){
        case  GET_INFO_SILD :
            return state.update('listData',x => {
                return x.concat(fromJS(action.res));
            });

    }
    return state;
}